Temporal trends and associated factors of inpatient cardiac rehabilitation in patients with acute myocardial infarction: a community-wide perspective.