Solar-battery charge regulator