A framework for resilience analysis of infrastructure systems