Investigation of roasted coffee freshness with an improved headspace technique