Coarse-Grained Simulations of RNA and DNA Duplexes