Biosynthesis and applications of alginates