Truncation of finite‐element mesh for modal analysis of dielectric waveguides