Solvent effect on thermal degradation of polystyrene