Photophysics of polymeric carbon nitride