International trade and the macroeconomy