Planning for quasi-static manipulation tasks via an intrinsic haptic metric