The integrated Earth system model version 1: formulation and functionality