Applications of wave resistance theory to problems of ship design