Determining the selectivity of divalent metal cations for the carboxyl group of alginate hydrogel beads during competitive sorption.