Total torsion of three-dimensional lines of curvature