Gait analysis in children with cerebral palsy via inertial and magnetic sensors