Design of algorithms for the selection of monitor nodes for energy efficient intrusion detection in wireless sensor networks