Factors influencing the graphitization of polymer carbons