The analytical design of yacht sails