Optimization of the anion-exchange separation of metal-oxalate complexes