Finite–element method analysis of microwave and optical waveguides—trends in countermeasures to spurious solutions