Capital inflows, external shocks, and the real exchange rate · Study