Ab initio molecular dynamics of Na⁺ and Mg²⁺ countercations at the backbone of RNA in water solution.