A fuzzy logic approach to beaconing for vehicular ad hoc networks