An ab initio study of ion-pair states of the Br2 molecule