Synthesis and specral characteristics of some azaheterocycles accessible through hydrazine derivatives