High Purity Recovery of Magnesium and Calcium Hydroxides from Waste Brines