Connectivity-Aware Routing in Vehicular Ad Hoc Networks