Energy contributions in magnetite nanoparticles: computation of magnetic phase diagram, theory, and simulation