Electrochemical oxidation and reduction of hydroxyalkenes