Cartap residue analysis