Effect of salts on the interaction of nucleic acid particles