A CAD-based Methodology for Motion and Constraint Analysis According to Screw Theory