A convergent relaxation of the Douglas–Rachford algorithm