Application of functionalised chelating resins for selective sorption of metal ions with special reference to heavy metals