Triple templating of graphitic carbon nitride to enhance photocatalytic properties