Automatic determination of the number of components in the EM algorithm of restoration of a mixture of normal distributions