A generalized hydrodynamic interaction force module and its use in simulation of ship interactions in shallow channels