Stability, magnetic order, and electronic properties of ultrathin Fe3O4 nanosheets