Joint routing, MAC, and link layer optimization in sensor networks with energy constraints | Synapse