Efficient optimization procedure in non-linear fluid-structure interaction problem: Application to mainsail trimming in upwind conditions