Synthesis, characterization and antibacterial activity of heterocyclic quaternary ammonium polymers