Preparation and characterization of lon exchange materials and their uses in identification and determination of compounds