Prediction of esophageal varices and variceal hemorrhage in patients with acute upper gastrointestinal bleeding