Resilience optimization of systems of interdepedent networks