Spatial confinement and ion exchange synergetic strategy for highly selective removal of metal ions from the spinning solution containing ionic liquids