Origin of the electrocardiogram