Application of the surface complexation theory to the amphoteric sorption of inorganic ions on activated carbon