calculating the electric field from ∞ to the inside of the sphere.