Use of CO2 for electrosynthesis