Likelihood-ratio tests for hidden Markov models.