A spectral technique for the analysis of time and space-transients in planar dielectric waveguides