Element-free Galerkin method to the interface problems with application in electrostatic