Assembly and structure of Ni/NiO core–shell nanoparticles