Tempered expectation-maximization algorithm for the estimation of discrete latent variable models