Thermodynamic properties of lanthanide trihalide molecules