Engineering Resilient Collective Adaptive Systems by Self-Stabilisation