Simulation of canopy photosynthesis in maize and soybean