Advances and challenges in understanding the electrocatalytic conversion of carbon dioxide to fuels