Synthesis of thiopyrano[2,3‐d] pyrimidines and thieno[2,3‐d]pyrimidines