Solution of Laplace's equation by boundary contraction over regions of irregular shape