Flammability of polyacrylonitrile and its copolymers. II: Thermal behaviour and mechanism of degradation