Enhancement of transmission line theory for finite-length non-uniform transmission lines using scattering theory