Synthesis and characterization of ion exchange materials and their applications in the analysis of natural and synthetic samples