Tag heteroatom-containing quaternary ammonium salts