A new finite element formulation for one-dimensional analysis of elastic-plastic materials