Waste-to-energy plants – how they work