Solution Technique for Rational Expectations Models with Applications to Exchange Rate and Interest Rate Determination