Divalent Cation Shrinks DNA but Inhibits its Compaction with Trivalent Cation