Mechanistic studies on the electrosynthesis of sulfones