Equation of state of magnetite and its high-pressure modification: Thermodynamics of the Fe-O system at high pressure