Site-resolved stabilization of a DNA triple helix by magnesium ions.