The effect of pressure on iron compounds and the implications for the earth's mantle and core