Optimal reference trajectory shaping and robust gain-scheduling for transition control of nonlinear processes