Self-Alignment Learning to Improve Myocardial Infarction Detection from Single-Lead ECG