Oil gains 1 percent on U.S. inventory drop