Efficiency of gas extraction in headspace analysis