Thermal and ion-exchange studies on chelating terpolymer resins derived from o cresol urea formaldehyde