Temperature and residence time of the combustion products in a waste-to-energy plant