A theoretical method of researching ion-molecule reactions in solution