Bioorganic Investigation of Quaternary Ammonium Compounds: Probing Antibacterial Activity and Resistance Development with Diverse Polyamine Scaffolds