Solving the wave generation in numerical SPH-based wave tanks