Calculation of the total pinning force without a threshold criterion