Rational nanostructure design of graphitic carbon nitride for photocatalytic applications