Network of hydrogen bonds as a medium for DNA interaction in solvents