Modelling integrated Carbon-Nitrogen-Phosphorus cycling in natural and agricultural systems -- the sustainability of long-term agriculture