Energy optimization based on compound routing protocol for compactly distributed wireless sensor network