magnesium diabetes