Routing in Mobile Ad-Hoc Networks of Sensors Using Both Energy and Delay Metrics