Towards energy-aware operating systems for 32-bit Wireless sensor network nodes