Accelerometry-based gait analysis and its application to Parkinson's disease assessment--part 1: detection of stride