Phase transitions in the layered structure of diguanidinium tetraiodoplumbate