Mathematical Scattering Theory in Quantum and Acoustic Waveguides