Linking electronic structure to adsorption energies: Metal surfaces and single-atom catalysts.