Wireless sensor network for sub-metering electric energy consumption