Solve Markov-switching DSGE models