Explaining the volatility of the real exchange rate in emerging markets