A Novel Modal Technique for Time and Frequency Domain Analysis of Waveguide Components