The chemical properties of bimetallic surfaces: Importance of ensemble and electronic effects in the adsorption of sulfur and SO2