An Application of Dual Graphs to the Automatic Generation of the Kinematic Structures of Mechanisms