Oil prices climb on geopolitical and inventory factors