Thermochemical stability of BaFe_12O_19 and BaFe_2O_4 and phase relations in the Ba-Fe-O ternary system