Mg2+ recognizes the sequence of DNA through its hydration shell