Thermally regenerable ion-exchange resins. I the encapsulation of polyamine microparticles in a polyacid matrix