of polycarboxylic acids with epihalohydrins or precursors thereof