Effects of root canal curvature and mechanical properties of nickel-titanium files on torque generation.