Advertisement-based energy efficient medium access protocols for wireless sensor networks