Impact of the competitive adsorption of ions at surface sites on surface free energies and surface forces