Localized routing with guaranteed delivery and a realistic physical layer in wireless sensor networks