Structure and dynamics of copper complexes with 2,2′:6′,2″-terpyridines in glassy matrices