Iron in magnesium oxide at high pressures: a first principles theoretical investigation