Nonlinear analysis of pretwisted rods using 'principal curvature transformation'. I - Theoretical derivation