Terthiophene appended with terpyridine units as receptors of protons, and Zn2+ ions: photoinduced energy and electron transfer processes