Phase boundaries and thermodynamic analysis of the rare-earth-rich alloys in the La-Tl and Pr-In systems