Effect of grain boundaries on the magnetoresistance of magnetite