Scattering-theory-based methodology for electromagnetic transient analysis of nonuniform frequency-dependent transmission line structures