Please explain the physiological basis of the electrocardiograph.