Structural basis for the nuclease activity of a bacteriophage large terminase