Ruthenium based terpyridine complexes as both luminescent and NLO materials