Electronic structure of chainlike polysilane