A boundary integral method for acoustic radiation and scattering