Detection of the number of independent components in multilead electrocardiograms