Role of TM-TM Connection Induced by Opposite d-Electron States on the Hardness of Transition-Metal (TM = Cr, W) Mononitrides.