Essays in the Macroeconomics of Emerging Countries