Ecosystem services and the resilience of agricultural landscapes