Quantum calculations on the adsorption of halide ions on the noble metals