Unraveling the Formation of Core−Shell Structures in Nanoparticles by S-XPS