Optimal control theory : a method for the design of wind instruments G