Distributed Detection of Local Phenomena with Wireless Sensor Networks