Foundations of international macroeconomics