Detecting Dataset Bias in Medical AI: A Generalized and Modality-Agnostic Auditing Framework