Solar cell voltage step-up and step-down device