Oil Prices and the Dynamics of Output and Real Exchange Rate