Magnetic Structures of 2D and 3D Nanoparticles: Properties and Applications