Improved real-time gait phase detection using simple force sensors, sequencing conditions and smart fault management