Essays on quantitative macroeconomics and international finance