Mechanism of the Kolbe electrosynthesis