Lattice energies of compounds of the transition-type metals