Gait-based authentication using a wrist-worn device