Robust affine motion correction in fMRI time series