Biosynthesis of glutamate in photosynthetic bacteria