Motor primitive-based control for lower-limb exoskeletons