Multiscale modeling for the bioelectric activity of the heart