Multistage electrochemical processes involving stable intermediates