Self-generated oxygen gradients control collective aggregation of photosynthetic microbes