repulsive potentials implementation