Short and long-term prognosis of admission hyperglycemia in patients with and without diabetes after acute myocardial infarction: a retrospective cohort study