Structure transformations of quasicrystalline phases in quaternary alloys