Defluorination-assisted heteroatom doping reaction with ammonia gas for synthesis of nitrogen-doped porous graphitized carbon