A Geometrical Characterization of Workspace Singularities in 3R Manipulators