An Energy-Driven Design Methodology for Distributing DSP Applications across Wireless Sensor Networks