Mechanism of O-antigen distribution in lipopolysaccharide