Gait Event Detection in Tibial Acceleration Profiles: a Structured Learning Approach