An XRD characterization of the thermal degradation of polyacrylonitrile