Building High Performance Wireless Rechargeable Sensor Networks and Vehicular Networks by Algorithm Designs