Modeling and control of a parallel robot for needle surgery