Electronic structure of conjugated oligomers