Regulation of charging current or voltage using discharge tubes or semiconductor devices {using semiconductor devices only}