Generalized stiffness matrix of a curved-beam element