Magnetism in nanometer-thick magnetite