Effective regulation of the electronic properties of a biphenylene network by hydrogenation and halogenation