The chemistry of carbon fiber formation from polyacrylonitrile