Preparation of Ni1 − xFex nanoparticles with a composition gradient and a proposed formation mechanism