The Role of Cyber-Physical Systems in Revolutionizing Transportation: From Connected Cars to Autonomous Vehicles