Catalytic mechanisms of acyl transfer reactions in dipolar aprotic media. 2. Electrophilic activation of the carbonyl group by quaternary alkylammonium and imidazolium functions