Cointegration and exchange rate dynamics