Dielectric function and one-dimensional description of the absorption of poly(3-octylthiophene)