Automatic gait events detection with inertial measurement units: healthy subjects and moderate to severe impaired patients | Synapse