Nano-designed semiconductors for electro- and photoelectro-catalytic conversion of carbon dioxide.