Revised and extended analysis of trebly ionized bromine: Br IV