Phase equilibria analysis of the binary N2-NH3 and H2-NH3 systems and prediction of ternary phase equilibria