Sex differences in health-related quality of life trajectories following myocardial infarction: national longitudinal cohort study