Selective adsorption and ion exchange of metal cations and anions with silico-titanates and layered titanates