Distributed Cooperative Processing and Control over Wireless Sensor Networks