Bifunctional alloys for the electroreduction of CO2 and CO