Fine modulation of the electronic properties in a new class of pyridyl and pyrimidyl ligands