Text this: Detection and Prevention of Selective Forwarding-Based Denial-of-Service Attacks in WSNs