Solving Rational Expectations Models Under Structural Change