Numerical simulation of ship seakeeping by the SWENSE functional decomposition method