Polymerization and degradation of polyacrylonitrile in gas discharge