Heterocyclic Compounds. I. Reactions of o-Amino-carboxamide with b-Diketones: Synthesis of Imidazo[1,5-a]pyrimidine and Pyrazolo[1,5-a]pyrimidine Derivatives