An experimental study of the mechanism of the replacement of magnetite by pyrite up to 300 °C