Validation of an automated kinematic protocol for the determination of gait events