Potential functions for alkali halide molecules