An Optimum Design Procedure for Both Serial and Parallel Manipulators