Nitrogen fixation by photosynthetic bacteria