Thermal behaviour of acrylonitrile polymerization and polyacrylonitrile decomposition