Detection of Jamming Attacks in VANETs