A toolbox for the analysis of the grasp stability of underactuated fingers