Synthesis, photophysics and electrochemistry of novel, nitrogen-containing heterocyclic derivatives