Magnesium protects against neurological deficit after brain injury