Participation in disease management programs and major adverse cardiac events in patients after acute myocardial infarction: a longitudinal study based on registry data