Maximum likelihood estimator for hidden Markov models in continuous time