Text this: Optimized deep residual networks for early detection of myocardial infarction from ECG signals