Synthesis of Polynuclear Heterocyclic Compounds Derived from Thieno(2,3-d)pyrimidine Derivatives