Unifying ecosystem resistance, resilience, and recovery from extreme stress into a single statistical framework