Ecology-Inspired Techniques for Resilient Design of Systems of Systems