Oil prices gain as traders focus on Iran tensions and stockpiles