An Immuno-Inspired Approach to Misbehavior Detection in Ad Hoc Wireless Networks