Hop-by-hop traffic-aware routing to congestion control in wireless sensor networks