Genome rearrangements during Anabaena heterocyst differentiation