Basis-set extrapolation of the correlation energy