Application of the immersed-body method to simulate wave-structure interactions