Essays in macroeconomics, international trade and the environment