Towards A Quantitative Resilience Framework: Data-Driven Studies And Applications To Social Organisations