Approximate solution to the diffusion equation and its application to seepage-related problems