A discrete-valued latent stochastic process for the estimation of credit migration matrices