Dynamic Connectivity Metric for Routing in VANETs