Titrimetric determination of long-chain amines and quaternary ammonium salts