Cation exchange in porous glass