Ground and valence excited states of C2N and CN2 transients: Ab initio geometries, electronic structures, and molecular properties