Resistance and propulsion of ships