Structural and optical properties of amorphous carbon nitride