Measuring quaternary ammonium on surfaces