Electrolytic production of organic compounds