A Generic Mathematical Model for the Maneuvering and Tacking of a Sailing Yacht