Measuring Gait Quality in Parkinson's Disease through Real-Time Gait Phase Recognition