Resilience-Based design of Natural Gas Pipelines