Removal of residual COfrom feed water to increase the lifetime of KOH electrolyte