UK to end use of coal to generate electricity in 2024