Structural evolution of nanocrystalline Pd-Mg bilayers under deuterium absorption and desorption cycles