UN secretary general to be chosen after open debates