Direct correlation functions of the Widom–Rowlinson model