Three-step estimation of latent Markov models with covariates