Comparative study of the inelastic diffusion lengths in weakly localising Pd and PdHx films