Synthesis and optical properties of the isomeric pyrimidine and carbazole derivatives: Effects of polar substituents and linking topology