Analysis and Design of a Multi-Mode Wake-Up Receiver Based on Direct Envelope Detection in Wireless Sensor Networks