Experimental and theoretical investigation of the p- and n-doped states of alkylsulfanyl octithiophenes