Configuration spaces and finite type invariants of knots