Exploiting node mobility for energy optimization in wireless sensor networks