Calculation of geometries and chemisorption energies of adatoms on simple metals