Eutectoid phase transformation of olivine and spinel into perovskite and rock salt structures