Effects of photoinhibition on whole‐plant carbon gain assessed with a photosynthesis model