Spectroscopic and theoretical study of the molecular and electronic structures of a terthiophene-based quinodimethane.