Finite element method for acoustic radiation and scattering in an unbounded domain