Thermal history, partial preservation and sampling bias recorded by Stardust cometary grains during their capture