Development and application of earth system models