BACKGROUND OF THE INVENTION In recent years, networks such as wireless sensor networks have emerged as an ideal solution to a number of applications such as monitoring, target tracking, biological/chemical attack detection, and commercial and residential automation.