A Competitive Adsorption Model for the Inhibition of Crevice Corrosion and Pitting