High-yield synthesis and optical properties of g-C₃N₄