DNA and RNA Folding Thermodynamics in Cosolute Solutions