A sugar-functionalized amphiphilic pillar[5]arene: synthesis, self-assembly in water, and application in bacterial cell agglutination.