The loop expansion of the Kontsevich integral, abelian invariants of knots and S-equivalence