Parametric estimation of hidden Markov models by least squares type estimation and deconvolution