Oil mixed after U.S. inventories post surprise gain