Optimum design of a ship for the reduction of structural response induced by water impact