Synthesis and application of bacterial exopolysaccharides