Interactions between metal ions and capsular polymers