Linear convergence of the Douglas–Rachford method for two closed sets