Rotational spectrum and hyperfine structure in the X2Σ+ state of BaBr