what magnesium does for the body