Investigation by mass spectrometer of the kinetics of thermal degradation of polystyrene and its connection with mechanical rupture