Measuring resilience to major life events