Analysis of electrochemical processes using surface plasmon resonance