Method of preparation of the amphoteric ions with the hydrophilic polymer matrix