Autonomous and portable soft exosuit for hip extension assistance with online walking and running detection algorithm