Thylakoid ion flux-Linking photosynthetic efficiency with osmotic stress response