Cathodic reduction of quaternary ammonium cations