Functionalised Terpyridines and Their Metal Complexes—Solid-State Interactions