Electrosynthesis of alcohols from organic halides and ketones or aldehydes