Active constraints for robotic surgery in deforming tissue