Markov-switching models with high-dimensional transition probabilities