On the stability of sailing vessels