Oil prices gain on US inventory drop, Middle East tensions