what is residue in chemistry