Essays in energy and environmental economics