Compositional inhomogeneity of Pd–Ag nanoparticles probed by hydrogen