An Absorbing Boundary Condition for Regular and Irregular Wave Simulations