Structural studies of thin Pd films loaded with hydrogen