Thermal transformation of cyclopropylazoarenes into the five-membered nitrogen-containing heterocycles