Synthesis and antimicrobial properties of imidazolium and pyrrolidinonium salts.