Design of the crank–rocker mechanism for various design cases based on the closed-form solution