Ion-exchange Technology I: Theory and Materials