The total variance of a periodogram-based spectral estimate of a stochastic process with spectral uncertainty and its application to classifier design