Truncation of Finite Element Mesh for Modal Analysis of Dielectric Waveguides