Brine mixing in waterflooded reservoirs and the implications for scale prevention