Quantifying ecological resilience to extreme disturbances and environmental change