Nanostructured electrodes and devices for converting carbon dioxide back to fuels: advances and perspectives