Structural, Electronic, and Mechanical Properties of CoN and NiN: An Ab Initio Study