Preparation and characterization of graphitic carbon nitride through pyrolysis of melamine