The smart city as a complex adaptive system: the ebbs and flows of humans and materials