Physical layer driven algorithm and protocol design for energy-efficient wireless sensor networks