Mechanism of Acid Reduction at Low and High Overpotential Metal Electrodes in the Presence and Absence of CO2: Implications for CO2 Reduction by N-Heterocycles