Solution of the Poisson equation with a thin layer of random thickness