Modeling a Flow-Cell for Electrochemical Reduction of Carbon Dioxide to Formate