Testing the influence of age, sex and life habits on quality of life of patients with myocardial infarction