Generalized Model for Anion and Cation Adsorption at Oxide Surfaces