Potential energy functions for alkali halide molecules