Optical spectra and electronic structure of poly(3-methylthiophene)