Optimized canopy structure improves maize grain yield and resource use efficiency