Automated Electrocardiographic Quantification of Myocardial Scar in Patients Undergoing Primary Prevention Implantable Cardioverter Defibrillator Implantation: Association with Mortality and Subsequent Appropriate and Inappropriate Therapies.