Pyridine-Based Heterocycles. Synthesis of New Pyrido [4 ‘,3 ‘:4,5]thieno[2,3-d]pyrimidines and Related Heterocycles