New Zealand ends its military training mission in Iraq mid-next year