Solid-solid transitions in Pd-Pt nanoalloys