Oil prices extend gains after U.S. inventory drop