Large-Scale Intelligent Systems: From Network Dynamics to Optimization Algorithms