Impact of the joint association between sex, age and diabetes on long-term mortality after acute myocardial infarction