A conceptual framework for collective adaptive systems