Analysis of different methods for wave generation and absorption in a CFD-based numerical wave tank