Workspace Analysis of Mechanical Manipulators Using Polynomial Discriminants