Hybrid system for knowledge-based synthesis of robot grasps