Accurate walking and running speed estimation using wrist inertial data