Learning the Elasticity of a Series-Elastic Actuator for Accurate Torque Control