A unifying framework for classification and interpretation of mechanism singularities