Third-harmonic susceptibility: frequency dependence and pinning potential