Role of cardiac magnetic resonance imaging in assessing ischemic and nonischemic cardiomyopathies