Conformational effects on electrical and spectroscopic properties of bi-, ter-, and poly-thiophenes