Structural aspects of catalytic mechanisms of endonucleases and their binding to nucleic acids