Adapting contention-based forwarding to urban vehicular topologies for traffic safety applications