A computationally intelligent approach to the detection of wormhole attacks in wireless sensor networks