Symmetry transformation in Pd quasicrystals upon heating and hydrogenation