Scientific foundations for the simulation of ecosystem function