Modelling the competition for light and nitrogen between rice and Echinochloa crus-galli