Modeling Longitudinal Data by Latent Markov Models with Application to Educational and Psychological Measurement