Role of magnesium ions in DNA recognition by the EcoRV restriction endonuclease