Atomic structures of a bactericidal contractile nanotube in its pre- and postcontraction states