Distributed end-effector formation control for mixed fully- and under-actuated manipulators with flexible joints