Many-body contributions to the intermolecular potential in alkali halide crystals and clusters