Catalytic graphitization of carbon using titanium and zirconium