Structure and energetics of alkali-metal halide dimer molecules