Synthesis of Amino Derivatives of Five-Membered Heterocycles by Thorpe—Ziegler Cyclization