A NURBS pabnel method for three-dimensional radiation and diffraction problems