The application of wave resistance calculations to ship hull design