A model-based approach to measure school achievements in latent groups of students: a simulation study