Environmental Quality, the Macroeconomy, and Intergenerational Distribution