In-network processing in Wireless Sensor Networks: novel approaches to distributed data aggregation and compression