On the radiation and diffraction of water waves by a rectangular buoy