Exchange Rate Flexibility, Volatility, and the Patterns of Domestic and Foreign Direct Investment · Study