Structural insights into the assembly and regulation of distinct viral capsid complexes