The future of coal in a carbon-constrained climate