Metal-Doped Nitrogenated Carbon as an Efficient Catalyst for Direct CO2 Electroreduction to CO and Hydrocarbons.