Ab initio study of the half-metal to metal transition in strained magnetite