Synthesis of 2,4-disubstituted pyrimidines, polypyrimidinediyls, and annulated pyrimidines