Magnetic nanoparticles separation based on nanostructures