Structure and stability of nickel/nickel oxide core-shell nanoparticles