how is dolomite used to produce magnesium