On the inverse problem of detecting cardiac ischemias: theoretical analysis and numerical reconstruction