Increasing environmental regulation and China’s slowing economy are threatening to sap coal’s dominance as the world’s leading fuel