High-efficiency controller for solar panels