Distributed hole detection algorithms for wireless sensor networks