Ab initio investigation of Br-3d core-excited states in HBr and HBr+ toward XUV probing of photochemical dynamics