Thermolysis of polystyrene