Thermal degradation of foamed polystyrene