Oil extends gains as US stockpile draw adds to demand optimism