The electronic and geometric structures of neutral and potassium-doped poly[3-(4-octylphenyl)thiophene] studied by photoelectron spectroscopy