Task-Specific Object Grasps Using Primitive Shapes And Symbolic Reasoning