Temporal trends in cardiovascular risk factors, lifestyle and secondary preventive medication for patients with myocardial infarction attending cardiac rehabilitation in Sweden 2006–2019: a registry-based cohort study