Surface enhanced raman scattering and second-harmonic generation from CN− complexes and SO2−4 on Ag electrodes during oxidation-reduction cycles