Catching Up with Traffic Lights for Data Delivery in Vehicular Ad Hoc Networks