Robust Clustering for Time Series Using Spectral Densities and Functional Data Analysis