Integral representation of a solution to the Stokes–Darcy problem