Polaritons in waveguides