Hidden Markov models: Estimation theory and economic applications