Hydrogen storage and stability properties of Pd–Pt solid-solution nanoparticles revealed via atomic and electronic structure