Effects of process conditions and electrode material on reaction pathways for carbon dioxide electroreduction with particular reference to formate formation