Dissecting Mg2+-RNA interactions using atomistic molecular dynamics