Analysis of the phonon spectrum in the titanium oxyhalide TiOBr