Electrosynthesis of cyclopropane derivatives by a Perkin-type reaction