Electronic structures of polydiacetylene backbones