Resilience of phosphorus cycling