In-hospital and long-term prognoses of patients with a mid-range ejection fraction after an ST-segment myocardial infarction