Structure and electronic properties of new model dinitride systems: A density-functional study of CN2, SiN2, and GeN2