NATO head says optimistic about Afghan consensus