How do ecological resilience metrics relate to community stability and collapse?