Energy-Aware Signal Classification in Ad-hoc Wireless Sensor Networks