Metabolism of photosynthetic bacteria