Robustness Optimization for IoT Topology