New molecular insights into the stability of Ni–Pd hollow nanoparticles