Spectral theory of guided waves. (2021)