Method of poles for multilayer thin-film waveguides