Synthesis of polymer salts and amides of penicillins