Connected and Autonomous Vehicles in Smart Cities