Atomic and electronic structures of4dtransition-metal nitrides