Integration of Energy Conversion and Biosynthetic Processes in Bacterial Photosynthesis