Solutions of Poisson's equation in channel-like geometries