Optimal Routing and Energy Allocation for Lifetime Maximization of Wireless Sensor Networks With Nonideal Batteries | IEEE Journals & Magazine | IEEE Xplore