Numerical solution to boundary problems for Poisson’s equation by point-source method