Separation of carboxylates using electrodialysis: a key process for the electro-refinery concept