Synthesis, structure, and optical properties of Pt(II) and Pd(II) complexes with oxazolyl- and pyridyl-functionalized DPPM-type ligands: a combined experimental and theoretical study.