Energy efficient embedded systems and their application in wireless sensor networks