Magnetic interactions of iron nanoparticles in arrays and dilute dispersions.