Thermodynamics of Ternary Nitride Formation by Ammonolysis: Application to LiMoN2, Na3WN3 and Na3WO3N