How to keep a solar panel from overcharging a battery