A Goal Model for Collective Adaptive Systems