Foot clearance estimation during overground walking and vertical obstacle passing using shank-mounted MIMUs in healthy and pathological subjects