Ion partitioning between brines and ion exchange polymers