Photosynthesis, photorespiration, and light signalling in defence