Structure of bacteriophage SPP1 head-to-tail connection reveals mechanism for viral DNA gating