Thermal degradation of polyallyl methacrylate by mass spectroscopy and TGA