Selectivity control for electroreduction of ketones