Macroeconomic policy in resource-rich economies