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