Photo-aided reduction of carbon dioxide to carbon monoxide