Oil rises as US-Iran tensions increase and inventory declines