Electrochemical formation of glycals in THF