Examining the relationship between the exchange rate, foreign direct investment and trade