Shared architecture of bacteriophage SPO1 and herpesvirus capsids