Metal-insulator and order-disorder phase transitions: Magnetite