A comparison of graphitic carbon nitrides synthesized from different precursors through pyrolysis