The estimation of derivatives of a nonparametric regression function when the data are correlated