Electrochemical production of syngas from CO2 captured in switchable polarity solvents