Mechanism of assembly of a leucine zipper domain