Metal-metal bonding in Cr-Cr and Mo-Mo dimers: Another success of local spin-density theory