Lamé differential equations and electrostatics