magnesium lab