Extending time series forecasting methods using functional principal components analysis