Electronic structures of polysilanes having pyrrole and thiophene groups