Insights into formation and stability of τ-MnAlZx (Z = C and B)