Generally, such salts can be prepared by reacting the free acid or base forms of these compounds with a stoichiometric amount of the appropriate base or acid in water or in an organic solvent, or in a mixture of the two; generally, nonaqueous media such as ether, ethyl acetate, ethanol, isopropanol, or acetonitrile are preferred.