Simulation of environmental and genotypic variations of final leaf number and anthesis date for wheat