Synthesis, molecular orbital, optical and device characterization of mononuclear mixed ligand nickel(II) complex of phthalate with N,N,N',N'-tetramethylethylenediamine for photodiode applications.