An Active Switching Circuit For Solar Cells