Electrochemical reduction of alkali metal ions in pyridine