Evolution of the magnetic structure with chemical composition in spinel iron oxide nanoparticles