The behaviour of a ship in head waves at restricted water depths