Simulation and prediction of functional block in the presence of structural and ionic heterogeneity.