Using photosynthesis to detect plant stress