Oil prices gain nearly 2% after drop in U.S. crude inventories