An analysis of the coupling of finite-element and Nyström methods in acoustic scattering