Anion adsorption, CO oxidation, and oxygen reduction reaction on a Au(100) surface: The pH effect