Synthetic modification of quinones and synthesis of some nitrogen heterocycles as biologically active compounds