Energy-Aware FPGA-Based Architecture for Wireless Sensor Networks