Flux-surface variations of the electrostatic potential in stellarators: impact on the radial electric field and neoclassical impurity transport