Fermi level pinning and the charge transfer contribution to the energy of adsorption at semiconducting surfaces