Irradiation-induced precipitation: A thermodynamical approach