Complexing of alginic acid with metal ions