One-dimensional finite element formulation with node-dependent kinematics