Sex-related differences in prognosis after myocardial infarction: changes from 1978 to 2007