Spectral analysis using mixtures of factor analyzers