Three-dimensional electric potential induced by a point singularity in a multilayered dielectric medium