Defective Sensor Identification for WSNs Involving Generic Local Outlier Detection Tests