Redundancy Planning for Cost Efficient Resilience to Cyber Attacks