Consistency of the maximum likelihood estimate for Non-homogeneous Markov-switching models