Layered graphitic carbon nitride: nano-heterostructures, photo/electro-chemical performance and trends