Real-time detection of gait and stance events from WR embedded sensors