Mechanical analysis of parallel manipulators with simulation, design, and control applications