Electrostatics-based particle sampling and approximate inference