Analysis of ion exchange processes using nuclear techniques