Oil rebounds in volatile year-end trade