Photosynthetic and quasi-photosynthetic bacteria