Theoretical evidence of the Berry-phase mechanism in anomalous Hall transport: First-principles studies of CuCr2Se4-xBrx