using a quaternized group or a protonated amine group of the substrate