Serum magnesium level as a predictor of acute kidney injury in patients with acute pancreatitis