Ab initio study of the tautomerism of 2,5-substituted diazoles