QoS-aware node selection algorithm for routing protocols in VANETs