The Almost Perfect Scale in medical students: factor analysis, measurement invariance, and profile analysis