Metrics for the resilience of electric infrastructure