Analysis of the molecular basis for the supramolecular structure of lipopolysaccharides