Cam Mechanisms Reverse Engineering Based on Evolutionary Algorithms