Theoretical study of singlet and triplet excitation energies in oligothiophenes