Energy-Efficient Signal Classification in Ad hoc Wireless Sensor Networks