Solution and estimation of Markov Switching Rational Expectations / DSGE Models