Endogenous Growth in an Open Economy and the Real Exchange Rate