Thermal degradation of poly(styrene-g-acrylonitrile)