A theoretical study of the UV spectra of dithienyls and thiophene