Optimizing the design of a CO2 electrolyser for producing formate to improve flow distribution and gas bubble flow