Ion exchange in potassium titanyl phosphate