Essays on international macroeconomics, productivity growth, and firm dynamics