Analytical Stiffness Matrix for Curved Metal Wires