Adaptive Distributed Outlier Detection for WSNs