Photosynthesis under osmotic stress