Analytical procedures to study general cross section wires during nonlinear bending