Comparison of a soft exosuit and a rigid exoskeleton in an assistive task