Bifunctional polymer-metal nanocomposite ion exchange materials