An ab initio study of the structure, tautomerism and molecular properties of the C- and N-amino-1,2,4-triazoles