An effective approach to model parallel robots with flexible links