The endogeneity of the exchange rate as a determinant of FDI: A model of entry and multinational firms