Thermal treatments of solid wastes. Different strategies for related pollutant management