Configuration spaces and Vassiliev classes in any dimension