Extending a first-principles primary production model to predict wheat yields