Optimization of deformity correction modes and their control methods for hexapod robot based external fixator