Functional reconstruction and local prediction of chaotic time series.