Contact Force Decomposition for the Grasping of Rigid Objects