Thermal coloration and insolubilization in polyacrylonitrile