Energy charge regulation in photosynthetic bacteria