Analysis and synthesis of slider-crank mechanisms for automatic machinery