Optimal energy management policies for energy harvesting sensor nodes | Synapse