Electrochemical modulation spectroscopy