Substrate dependence of the mechanism of EcoRI endonuclease