Electrochemical studies on haloamides. Part VIII. Electrosynthesis of N-(halo)vinylamides