Evolution of Traffic Microsimulation and Its Use for Modeling Connected and Automated Vehicles