A method for the optimization of ship hulls from a resistance point of view