Generalized resilience and failure indices for use with pressure-driven modeling and leakage