Dependence of properties of swollen and dry polymer networks on the conditions of their formation in solution