Copolymerization with 2,4,6-triaminopyrimidine for the rolling-up the layer structure, tunable electronic properties, and photocatalysis of g-C3N4.