Scattering-theory analysis of waveguide-resonator coupling | Synapse