In situ architecture, function, and evolution of a contractile injection system