Thermodynamics of solid phases containing rare earth oxides