Synthesis and characterization of the epoxy-functionalized quaternary ammonium chloride