Bipolar luminescent materials containing pyrimidine terminals: synthesis, photophysical properties and a theoretical study