Self-Consistent Calculation of Atomic Chemisorption on Metals