magnesium recovery