Calculation of the ionization potentials of transition-metal dimers by the discrete-variation-Xα method