Thermal conductivity of minerals at high pressure: The effect of phase transitions