Dynamic aggregation and dispersal of Escherichia coli under cycles of feast and famine