Improving critical infrastructure resilience with application to power distribution networks