Thermochemical synthesis of graphite-like carbon nitride and its application