Surveillance and intrusion detection in wireless sensor networks: design, analysis, and evaluation