Transformable parallel-serial manipulator for robotic machining