Thermodynamic stability of SrThF6(cr) and BaThF6(cr)