Spectral analysis of high-dimensional time series