Large deflection of 3D curved rods