Relationship between the molecular structure of alginates and their gelation in acidic conditions