Electrosynthesis of boronic acids and esters