Synthesis, characterization, and photochemical and computational investigations of Ru(II) heterocyclic complexes containing 2,6-dimethylphenylisocyanide (CNx) ligand.