Studies of Mg2+/Ca2+ complexes of naturally occurring dinucleotides: potentiometric titrations, NMR, and molecular dynamics