the formula of magnesium nitrate is