Synthesis and structure of condensed triazolo- and tetrazolopyrimidines