Design of polymers with metallic properties: electronic structures of diborines and boron-substituted poly(p-phenylene)