Autonomous Management of Energy-Harvesting IoT Nodes Using Deep Reinforcement Learning