Theory of ship waves and wave resistance