Artificial Intelligence of Things for Smart Cities